package com.ruoyi.fallback;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.service.TeneMentService;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class TeneMentServiceFallbackFactory implements FallbackFactory<TeneMentService> {
    @Override
    public TeneMentService create(Throwable cause) {
        return new TeneMentService() {


            @Override
            public AjaxResult getCount(Long id) {
                return AjaxResult.error("基础信息服务不可用请稍候");
            }

            @Override
            public AjaxResult getTenesByRidId(Long Ridid) {
                return AjaxResult.error("基础信息服务不可用请稍候");
            }
        };
    }
}
